package com.panda.web.mapper.wechatinfo;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panda.web.entity.wechatinfo.UserDemand;
import com.panda.web.entity.wechatinfo.UserFather;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserDemandMapper extends BaseMapper<UserDemand> {
    @Delete("delete from user_demand where openid =#{openid}")
    void deleteByOpenid(String openid);
    @Select("select * from user_demand where openid=#{openid}")
    List<UserDemand> findByOpenid(String openid);
}
